(XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]: Fix
authorEli Zaretskii <eliz@gnu.org>
Thu, 3 May 2001 17:47:37 +0000 (17:47 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 3 May 2001 17:47:37 +0000 (17:47 +0000)
the change from 2001-04-30.

src/xterm.c

index a967774f57a138141ad7ada08e50a0460ba1eb36..6bc3ced3a90cefbff827c92d252d70e1f4ef0daa 100644 (file)
@@ -10025,6 +10025,9 @@ XTread_socket (sd, bufp, numchars, expected)
                }
              else
                {
+#ifndef USE_TOOLKIT_SCROLL_BARS
+                 struct scroll_bar *bar;
+#endif
 #if defined USE_X_TOOLKIT && defined USE_LUCID
                  /* Submenus of the Lucid menu bar aren't widgets
                     themselves, so there's no way to dispatch events
@@ -10041,8 +10044,7 @@ XTread_socket (sd, bufp, numchars, expected)
                  /* Dispatch event to the widget.  */
                  goto OTHER;
 #else /* not USE_TOOLKIT_SCROLL_BARS */
-                 struct scroll_bar *bar
-                   = x_window_to_scroll_bar (event.xexpose.window);
+                 bar = x_window_to_scroll_bar (event.xexpose.window);
 
                  if (bar)
                    x_scroll_bar_expose (bar, &event);